package com.cskaoyan.controller.vx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.vo.TVO;
import com.cskaoyan.bean.vo.vxVo.BrandDetailVo;
import com.cskaoyan.service.vx.MarketBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: DYQ
 * @time: Created on 2022/6/7 19:54
 */

@RestController
@RequestMapping("wx/brand")
public class VxBrandController {

    @Autowired
    MarketBrandService marketBrandService;


    @RequestMapping("list")
    public BaseRespVo list(Integer page, Integer limit) {
        TVO<MarketBrandService> tvo = marketBrandService.queryBrandList(page, limit);
        return BaseRespVo.ok(tvo);
    }

    @RequestMapping("detail")
    public BaseRespVo detail(Integer id) {
        BrandDetailVo brandDetailVo = marketBrandService.queryBrandDetail(id);
        return BaseRespVo.ok(brandDetailVo);
    }

}
